﻿<%@ Page Title="Edit" Language="C#" MasterPageFile="~/Views/Shared/Classic.Master"
    Inherits="ModelViewPage<WorkTimeDto>" %>

<%@ Import Namespace="Revis.VClinicNet.Util.Extensions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Edytuj godziny pracy</h2>
    <% Html.BeginForm();%>
    <fieldset class="form">
        <%=Html.IfValidationFail()%>
        <div>
            <%=this.Literal(w => w.Day.ToPLString()).Label("Dzień tygodnia:")%>
        </div>
        <div>
            <%=this.TextBox(w => w.BeginHour).MaxLength(2).Size(2).Label("Początek zmiany:")%>
            :
            <%=this.TextBox(w => w.BeginMinute).MaxLength(2).Size(2)%>
            <%=this.ValidationMessage(w=>w.BeginHour) %>
            <%=this.ValidationMessage(w=>w.BeginMinute) %>
        </div>
        <div>
            <%=this.TextBox(w=>w.EndHour).MaxLength(2).Size(2).Label("Koniec zmiany:")%>
            :
            <%=this.TextBox(w => w.EndMinute).MaxLength(2).Size(2)%>
            <%=this.ValidationMessage(w=>w.EndHour) %>
            <%=this.ValidationMessage(w=>w.EndMinute) %>
        </div>
        <div>
            <%=this.TextBox(w=>w.Room).Label("Pokój:") %>
            <%=this.ValidationMessage(w=>w.Room) %>
        </div>
        <div>
            <%=this.CheckBox(w=>w.IsWorking).Label("Czy pracuje?") %>
        </div>
        <%=this.Hidden(w=>w.Day) %>
        <%=this.Hidden(w=>w.Id) %>
        <%=this.Hidden(w=>w.DoctorId) %>
        <div class="form-buttons">
            <%=this.SubmitButton("Zapisz") %>
            <%=this.ResetButton("Reset") %>
        </div>
    </fieldset>
    <% Html.EndForm(); %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
